package com.study.createobject;

public class Test {
    public static void main(String[] args) {
        Car c = new Car();
        c.name = "奔驰";
        c.price = 39.78;
        System.out.println(c.name);
        System.out.println(c.price);
        c.start();
        c.run();

        Car c2 = new Car();
        c2.name = "宝马x3";
        c2.price = 38.73;
        c2.start();
        c2.run();
    }
}
